//
//  CCellOnePage.m
//  Teacher
//
//  Created by cong on 15/11/14.
//  Copyright © 2015年 liangdianxiong. All rights reserved.
//

#import "CCellOnePage.h"

@implementation CCellOnePage

- (void)awakeFromNib {

    NSInteger widthCell = SCREEN_WIDTH/4 - 10 * 2;
    
    
    CGSize size = {widthCell,widthCell};
    
    
    [_ivTop mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(size).with.priority(800);
        make.left.equalTo(self.contentView).with.offset(10).with.priority(800);;
        make.right.equalTo(self.contentView).with.offset(-10).with.priority(800);;
        make.top.equalTo(self.contentView).with.priority(800);
    }];
    
    [_lbBottom mas_makeConstraints:^(MASConstraintMaker *make) {

        make.right.bottom.left.equalTo(self.contentView).with.priority(800);

        make.top.equalTo(_ivTop.mas_bottom);
    }];
    
}

-(void)setParams:(id)params{
    [super setParams:params];
    if (params) {
     
        
        NSDictionary * dict = params;
        
        self.lbBottom.text = dict[@"title"];
        
    }
}

@end
